Improving Code Generation for Associations: Enforcing Multiplicity Constraints and Ensuring Referential Integrity
نویسندگان
چکیده
UML classes involve three key elements: attributes, associations, and methods. Current object-oriented languages, like Java, do not provide a distinction between attributes and associations. Tools that generate code from associations currently provide little support for the rich semantics available to modellers such as enforcing multiplicity constraints or maintaining referential integrity. In this paper, we introduce a syntax for describing associations using a model-oriented language called Umple. We show source code from existing code-generation tools and highlight how the issues above are not adequately addressed. We outline code generation patterns currently available in Umple that resolve these difficulties and address the issues of multiplicity constraints and referential integrity.
منابع مشابه
Associations in MDE: A Concern-Oriented, Reusable Solution
Associations play an important role in model-driven software development. This paper describes a framework that uses ConcernOriented Reuse (CORE) to capture many different kinds of associations, their properties, behaviour, and various implementation solutions within a reusable artifact: the Association concern. The concern exploits aspectoriented modelling techniques to modularize the structur...
متن کاملPandora Case Tool: Triggers Generating for Cardinality Constraints in RDBMS
The cardinality constraint is one of the most important constraints that can be established in a conceptual model. Nevertheless, not all CASE tools for developing database support the validation of this constraint due to the complexity associated to the referential integrity rules. So that, the contribution of this work concerns to provide PANDORA CASE (a tool used for learning and developing d...
متن کاملExtended aggregations for databases with referential integrity issues
Querying databases with incomplete or inconsistent content remains a broad and difficult problem. In this work, we study how to improve aggregations computed on databases with referential errors in the context of database integration, where each source database has different tables, columns with similar content across multiple databases, but different referential integrity constraints. Thus, a ...
متن کاملIndex Design for Enforcing Partial Referential Integrity Efficiently
Referential integrity is fundamental for data processing and data quality. The SQL standard proposes di↵erent semantics under which referential integrity can be enforced in practice. Under simple semantics, only total foreign key values must be matched by some referenced key values. Under partial semantics, total and partial foreign key values must be matched by some referenced key values. Supp...
متن کاملA Framework for Generating Query Language Code from OCL Invariants
The semantical integrity of business data is of great importance for the implementation of business applications. Model-Driven Software Development (MDSD) allows for specifying the relevant domain concepts, their interrelations and their concise semantics using a plethora of modelling languages. Since model transformations enable an automatic mapping of platform independent models (PIMs) to pla...
متن کامل